import request from '@/utils/request'

// 查询技师作品列表
export function listTechnicianOpus(query) {
  return request({
    url: '/technicianOpus/technicianOpus/list',
    method: 'get',
    params: query
  })
}

// 查询技师作品详细
export function getTechnicianOpus(id) {
  return request({
    url: '/technicianOpus/technicianOpus/' + id,
    method: 'get'
  })
}

// 新增技师作品
export function addTechnicianOpus(data) {
  return request({
    url: '/technicianOpus/technicianOpus',
    method: 'post',
    data: data
  })
}

// 修改技师作品
export function updateTechnicianOpus(data) {
  return request({
    url: '/technicianOpus/technicianOpus',
    method: 'put',
    data: data
  })
}

// 删除技师作品
export function delTechnicianOpus(id) {
  return request({
    url: '/technicianOpus/technicianOpus/' + id,
    method: 'delete'
  })
}
// 删除技师作品
export function logicDelTechnicianOpus(id) {
  return request({
    url: '/technicianOpus/technicianOpus/' + id,
    method: 'delete'
  })
}

// 导出技师作品
export function exportTechnicianOpus(query) {
  return request({
    url: '/technicianOpus/technicianOpus/export',
    method: 'get',
    params: query
  })
}
